package com.gxa.dao;


import com.gxa.pojo.Notice;

import java.sql.SQLException;
import java.util.List;

public interface NoticeDao {
    //查询所有数据
    List<Notice> queryNotice(Integer param01, Integer param02) throws SQLException;

    //查询总记录数
    Integer countNotice() throws SQLException;

    //添加
    int add(Notice notice, String date) throws SQLException;

    //删除
    int del(String id) throws SQLException;

    //修改
    int mod(Notice notice, String date) throws SQLException;

    //条件查询
    List<Notice> searchNotice(Integer param01, Integer param02, String notice_name) throws SQLException;

    Integer countNotice(String notice_name) throws SQLException;
}
